package com.atguigu.edustat.scheduled;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduledTask {
    // 定时任务 cron表达式
    @Scheduled(cron = "0/5 * * * * ?")
    public void task(){
        System.out.println("任务执行");
    }
}
